package com.qidian.mes.cal.controller;

import com.qidian.mes.cal.service.CalUserService;
import com.qidian.mes.pojo.cal.CalPlanTeam;
import com.qidian.mes.pojo.cal.CalUser;
import com.qidian.mes.util.pojo.MESResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 04冯虹丹
 * @Company 起点编程
 * @Time 2023/11/3 18:49
 * @Description
 */
@RestController
@CrossOrigin
@RequestMapping("/calUser")
public class CalUserController {

    @Autowired
    private CalUserService calUserService;

    /**
     * 班组列表查询
     * @param page
     * @param limit
     * @param calUser
     * @return
     */
    @GetMapping("/list")
    public MESResult list(@RequestParam(defaultValue = "1")int page, @RequestParam(defaultValue = "10") int limit, CalUser calUser){
        return calUserService.list(page,limit,calUser);
    }
}
